const fs = require("fs");
const path = require("path");

// const privateKeyPath = path.resolve(__dirname, "keys/private.key");
// const PRIVATE_KEY = fs.readFileSync(privateKeyPath, "utf8");
// 或者写成：
// 默认情况下，相对目录和node程序的启动目录（package.json）有关系
const PRIVATE_KEY = fs.readFileSync("./src/config/keys/private.key");

const publicKeyPath = path.resolve(__dirname, "keys/private.key");
const PUBLIC_KEY = fs.readFileSync(publicKeyPath, "utf8");

module.exports = {
  PRIVATE_KEY,
  PUBLIC_KEY,
};
